using Engine.OldSerialization;

namespace RuthlessConquest {
    public class GameStateHashMessage : Message {
        public class Serializer : ISerializer<GameStateHashMessage> {
            public void Serialize(InputArchive archive, ref GameStateHashMessage value) {
                archive.Serialize("StepIndex", ref value.StepIndex);
                archive.Serialize("StateHash", ref value.StateHash);
                archive.Serialize("State", ref value.State);
            }

            public void Serialize(OutputArchive archive, GameStateHashMessage value) {
                archive.Serialize("StepIndex", value.StepIndex);
                archive.Serialize("StateHash", value.StateHash);
                archive.Serialize("State", value.State);
            }
        }

        public int StepIndex;

        public uint StateHash;

        public object State;
    }
}